package com.bwie.student.mapper;

import com.bwie.common.domain.Friend;
import com.bwie.common.domain.request.FriendRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface FriendMapper {

    List<Friend> showFriend(FriendRequest friendRequest);

    Integer insertFriend(FriendRequest friendRequest);

    Friend findById(@Param("friendId") String friendId);

    Integer updateFriend(Friend friend);

}
